package com.zhufeng.usercenterbackend.service;

import com.zhufeng.usercenterbackend.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

/**
 * zhufeng
 */

public interface UserService extends IService<User> {
    /**
     *
     * @param userAccount 用户账号
     * @param userPassword 用户密码
     * @param checkPassword 校验密码
     * @param 新用户 id
     */
    long userRegister(String userAccount, String userPassword, String checkPassword);
    /**
     *用戶登录
     * @param userAccount 用户账号
     * @param userPassword 用户密码
     * @ruturn 脱敏后的用户信息
     */
    User userLogin(String userAccount, String userPassword, HttpServletRequest request);

    User getSafetyUser(User originUser);

    int userLogout(HttpServletRequest request);
}
